package routers

import (
	"chinasoccer/apis/worker"

	"github.com/gin-gonic/gin"
)

func WorkerRouter(r *gin.RouterGroup) {
	r.POST("/worker_doc", worker.GetDoc)
	r.GET("/worker", worker.GetAllWorkers)
	r.POST("/worker", worker.AddWorker)
	r.PUT("/worker", worker.UpdateWorker)
	r.DELETE("/worker/:id", worker.DelWorker)
}
